package com.yazi.mxz.fieldsale.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.yazi.mxz.fieldsale.entity.beans.FieldSale;


public interface FieldSaleRepository extends MongoRepository<FieldSale, Long> {
	Page<FieldSale> findByIsFinishedIsTrue(Pageable pageable);
	List<FieldSale> findByIsFinishedIsFalse();
}
